<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 200px;
            height: 300px;
            margin: 0 auto;
            border: 1px solid red;
            text-align: center;
            
        }
    </style>
</head>
<body>
    <div class="box">
        <p>html书籍</p>
        <p>js书籍</p>
        <p>python书籍</p>
        <p>vue书籍</p>
        <p>共计：88.88元</p>
        <button >确定</button> <button>取消</button>
    </div>
    <script>
        window.onload = function(){
            var btn = document.querySelector(".btn")
            btn.onclick = function(){
                var msg = window.confirm("请问确定支付吗？")
                if(msg == true){
                    location.href = "../20231226/跳转界面.html"
                }
            }
        }
    </script>
</body>
</html>